<?php

namespace frontend\models;

/**
 * @author  shuang
 * @date    2016-11-17 13:46:40
 * @version V1.0
 * @desc    
 */
use common\models\TaskArea;
use yii\helpers\ArrayHelper;
class WB_TaskArea extends TaskArea {
    //获取地区
    public static function getdropdownArea(){
        $res  = WB_TaskArea::find()->asArray()->all();
        $temp = ["全部"=>"全部"];
        return ArrayHelper::merge($temp, ArrayHelper::map($res, "name", "name"));
    }
}
